//
//  SEGTabRequestManager.m
//  SEGStandard-SEGMessage
//
//  Created by Clavis on 2020/3/18.
//

#import "SEGTabRequestManager.h"

@implementation SEGTabRequestManager

#pragma mark - 检测&提交是否需要修改密码

/// 请求用户是否需要修改密码
/// @param finished finished
- (void)requestUserWhetherNeedUpdatePassword:(SEGNetworkReponse)finished {
    NSString *urlString = [SEGServerManager serverUrlJoint:kClientRootURL,@"/uhomecp-sso/v1/userApp/checkUserPwd",nil];
    [SEGHTTPBusinessManager seg_requestWithMethod:GET URLString:urlString parameters:nil finished:^(BOOL isSuccessed, id result, NSString *codeType, NSString *errorMessage) {
        finished(isSuccessed,result, codeType, errorMessage);
    }];
}


/// 提交用户暂不修改密码
/// @param finished finished
- (void)requestSubmitUserUpdatePasswordStatus:(SEGNetworkReponse)finished {
    NSString *urlString = [SEGServerManager serverUrlJoint:kClientRootURL,@"/uhomecp-sso/v1/userApp/checkPwdCallback",nil];
    [SEGHTTPBusinessManager seg_requestWithMethod:GET URLString:urlString parameters:nil finished:^(BOOL isSuccessed, id result, NSString *codeType, NSString *errorMessage) {
       finished(isSuccessed,result, codeType, errorMessage);
    }];
}

@end
